PDF.co icon

PDF.co

Automate document workflows with OCR, AI invoice parsing, data extraction, conversion, form filling, merging/splitting, and barcode processing. Ideal for invoices, forms, and scanned files.

Rotate PDF Pages

AI-generated

Summary

Rotate pages in a PDF from a URL, either by automatically detecting and correcting page orientation or by applying a selected angle to specified pages. The operation uses the configured PDF.co authentication and returns the processing result for the rotated document.

Inputs

  • Authentication (required) — Choose OAuth2 or API Key authentication.
  • PDF URL (required) — URL of the PDF to rotate.
  • Rotation Mode — Choose Auto to detect and correct rotation using text analysis, or Manual to specify an angle. Defaults to Manual.
  • Rotation Angle — For Manual mode, choose 90°, 180°, or 270°. Defaults to 90°.
  • Pages — For Manual mode, specify page indexes or ranges, such as 0,1-2,5,7-; indexes start at 0 and negative indexes count from the end. The declared default is empty, with the hint indicating page 0 as the service default.
  • Advanced Options — Optional settings include a JSON Custom Profile, output File Name, HTTP Username and Password for accessing the source URL, OCR Language, output link Expiration in minutes (defaults to 60), and a Webhook URL for receiving output data.

Output shape

A processing result for the rotated PDF.

The supplied source pack exposes only the execute function signature for this operation, so it does not show the exact response fields or whether the result contains a link, file data, or both.

Links

Discussion